from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required

from events import views

urlpatterns = patterns('',
    url(r'^milestone/$',
        views.milestone_list,
        name='milestone_list'),
    url(r'^milestone/create/$',
        login_required(views.create_milestone),
        name='create_milestone'),
    url(r'^milestone/(?P<milestone_id>\d+)/$',
        views.milestone_detail,
        name='milestone_detail'),
    url(r'^timeline/$',
        views.timeline_list,
        name='timeline_list'),
)